package org.daochong.fastdev.funcs;

import org.daochong.fastdev.Context;
import org.daochong.fastdev.Function;

public class ReturnViewFunction implements Function {

	public static String DEFAULT_FLAG = "returnView";

	public boolean is(String id) {
		return DEFAULT_FLAG.equals(id);
	}

	public void exec(String key, String prop, Context context) {
		context.setView(prop);
	}

}
